package com.ourteam.product.requirement.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:31
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class ProductVersionScopeDAOQueryBean extends BaseQueryBean {
    public ProductVersionScopeDAOQueryBean() {
        super();
    }

    public ProductVersionScopeDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public ProductVersionScopeDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.Id, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.Id, "id");
        }
    }

    public void addProductVersionIdSelectProperty() {
        addProductVersionIdSelectProperty("productVersionId");
    }

    public void addProductVersionIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.ProductVersionId, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.ProductVersionId,
                "productVersionId");
        }
    }

    public void addScopeNameSelectProperty() {
        addScopeNameSelectProperty("scopeName");
    }

    public void addScopeNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.ScopeName, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.ScopeName, "scopeName");
        }
    }

    public void addScopePrioritySelectProperty() {
        addScopePrioritySelectProperty("scopePriority");
    }

    public void addScopePrioritySelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.ScopePriority, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.ScopePriority,
                "scopePriority");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.Status, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.Status, "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.Remarks, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.Remarks, "remarks");
        }
    }

    public void addProductVersionNameSelectProperty() {
        addProductVersionNameSelectProperty("productVersionName");
    }

    public void addProductVersionNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductVersionScopeDAO.ProductVersionName, aAlias);
        } else {
            addSelectProperty(IProductVersionScopeDAO.ProductVersionName,
                "productVersionName");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addProductVersionIdSelectProperty();

        addScopeNameSelectProperty();

        addScopePrioritySelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();

        addProductVersionNameSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<ProductVersionScopeDAOQueryBean> {
        protected Criteria(ProductVersionScopeDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(IProductVersionScopeDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(IProductVersionScopeDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.Id + " is not null AND " +
                IProductVersionScopeDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.Id + " is null OR " +
                IProductVersionScopeDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " is null OR " +
                IProductVersionScopeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Id + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(IProductVersionScopeDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionScopeDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionScopeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionScopeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andProductVersionIdIsNull() {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " is null");

            return this;
        }

        public Criteria andProductVersionIdIsNotNull() {
            addCriterion(IProductVersionScopeDAO.ProductVersionId +
                " is not null");

            return this;
        }

        public Criteria andProductVersionIdIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.ProductVersionId +
                " is not null AND " + IProductVersionScopeDAO.ProductVersionId +
                " <> ''");

            return this;
        }

        public Criteria andProductVersionIdIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.ProductVersionId +
                " is null OR " + IProductVersionScopeDAO.ProductVersionId +
                " = '')");

            return this;
        }

        public Criteria andProductVersionIdEqualTo(long value) {
            return andProductVersionIdEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " = ",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdNotEqualTo(long value) {
            return andProductVersionIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " <>",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotEqualToOrIsNull(long value) {
            return andProductVersionIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andProductVersionIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId +
                " is null OR " + IProductVersionScopeDAO.ProductVersionId +
                " <>", value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdGreaterThan(long value) {
            return andProductVersionIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andProductVersionIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " >",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(long value) {
            return andProductVersionIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " >=",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdLessThan(long value) {
            return andProductVersionIdLessThan(Long.valueOf(value));
        }

        public Criteria andProductVersionIdLessThan(java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " <",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(long value) {
            return andProductVersionIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " <=",
                value, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdIn(long[] values) {
            if (values.length == 1) {
                return andProductVersionIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId + " in",
                    values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(long[] values) {
            if (values.length == 1) {
                return andProductVersionIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId +
                    " not in", values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductVersionIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId + " in",
                    values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andProductVersionIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId +
                    " not in", values, "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductVersionIdEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId + " in",
                    Arrays.asList(values), "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andProductVersionIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionId +
                    " not in", Arrays.asList(values), "productVersionId");

                return this;
            }
        }

        public Criteria andProductVersionIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionIdBetween(long value1, long value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " between",
                value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId + " between",
                value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotBetween(long value1, long value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId +
                " not between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andProductVersionIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionId +
                " not between", value1, value2, "productVersionId");

            return this;
        }

        public Criteria andScopeNameIsNull() {
            addCriterion(IProductVersionScopeDAO.ScopeName + " is null");

            return this;
        }

        public Criteria andScopeNameIsNotNull() {
            addCriterion(IProductVersionScopeDAO.ScopeName + " is not null");

            return this;
        }

        public Criteria andScopeNameIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.ScopeName +
                " is not null AND " + IProductVersionScopeDAO.ScopeName +
                " <> ''");

            return this;
        }

        public Criteria andScopeNameIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.ScopeName +
                " is null OR " + IProductVersionScopeDAO.ScopeName + " = '')");

            return this;
        }

        public Criteria andScopeNameEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " = ", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameNotEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " <>", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " is null OR " +
                IProductVersionScopeDAO.ScopeName + " <>", value, "scopeName");

            return this;
        }

        public Criteria andScopeNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameGreaterThan(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " >", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " >=", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameLessThan(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " <", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " <=", value,
                "scopeName");

            return this;
        }

        public Criteria andScopeNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopeName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopeNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.ScopeName + " like",
                buffer.toString(), "scopeName");

            return this;
        }

        public Criteria andScopeNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.ScopeName + " not like",
                buffer.toString(), "scopeName");

            return this;
        }

        public Criteria andScopeNameIn(List<String> values) {
            if (values.size() == 1) {
                return andScopeNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ScopeName + " in", values,
                    "scopeName");

                return this;
            }
        }

        public Criteria andScopeNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andScopeNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ScopeName + " not in",
                    values, "scopeName");

                return this;
            }
        }

        public Criteria andScopeNameIn(String[] values) {
            if (values.length == 1) {
                return andScopeNameEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopeName + " in",
                    Arrays.asList(values), "scopeName");

                return this;
            }
        }

        public Criteria andScopeNameNotIn(String[] values) {
            if (values.length == 1) {
                return andScopeNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopeName + " not in",
                    Arrays.asList(values), "scopeName");

                return this;
            }
        }

        public Criteria andScopeNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopeNameBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " between",
                value1, value2, "scopeName");

            return this;
        }

        public Criteria andScopeNameNotBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.ScopeName + " not between",
                value1, value2, "scopeName");

            return this;
        }

        public Criteria andScopePriorityIsNull() {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " is null");

            return this;
        }

        public Criteria andScopePriorityIsNotNull() {
            addCriterion(IProductVersionScopeDAO.ScopePriority +
                " is not null");

            return this;
        }

        public Criteria andScopePriorityIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.ScopePriority +
                " is not null AND " + IProductVersionScopeDAO.ScopePriority +
                " <> ''");

            return this;
        }

        public Criteria andScopePriorityIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.ScopePriority +
                " is null OR " + IProductVersionScopeDAO.ScopePriority +
                " = '')");

            return this;
        }

        public Criteria andScopePriorityEqualTo(int value) {
            return andScopePriorityEqualTo(Integer.valueOf(value));
        }

        public Criteria andScopePriorityEqualTo(java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " = ", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityNotEqualTo(int value) {
            return andScopePriorityNotEqualTo(Integer.valueOf(value));
        }

        public Criteria andScopePriorityNotEqualTo(java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " <>", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityNotEqualToOrIsNull(int value) {
            return andScopePriorityNotEqualToOrIsNull(Integer.valueOf(value));
        }

        public Criteria andScopePriorityNotEqualToOrIsNull(
            java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority +
                " is null OR " + IProductVersionScopeDAO.ScopePriority + " <>",
                value, "scopePriority");

            return this;
        }

        public Criteria andScopePriorityNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityGreaterThan(int value) {
            return andScopePriorityGreaterThan(Integer.valueOf(value));
        }

        public Criteria andScopePriorityGreaterThan(java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " >", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityGreaterThanOrEqualTo(int value) {
            return andScopePriorityGreaterThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andScopePriorityGreaterThanOrEqualTo(
            java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " >=", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityLessThan(int value) {
            return andScopePriorityLessThan(Integer.valueOf(value));
        }

        public Criteria andScopePriorityLessThan(java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " <", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityLessThanOrEqualTo(int value) {
            return andScopePriorityLessThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andScopePriorityLessThanOrEqualTo(
            java.lang.Integer value) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " <=", value,
                "scopePriority");

            return this;
        }

        public Criteria andScopePriorityLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ScopePriority);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andScopePriorityLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityIn(int[] values) {
            if (values.length == 1) {
                return andScopePriorityEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " in",
                    values, "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityNotIn(int[] values) {
            if (values.length == 1) {
                return andScopePriorityNotEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " not in",
                    values, "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andScopePriorityEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " in",
                    values, "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityNotIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andScopePriorityNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " not in",
                    values, "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andScopePriorityEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " in",
                    Arrays.asList(values), "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityNotIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andScopePriorityNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ScopePriority + " not in",
                    Arrays.asList(values), "scopePriority");

                return this;
            }
        }

        public Criteria andScopePriorityIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andScopePriorityBetween(int value1, int value2) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " between",
                value1, value2, "scopePriority");

            return this;
        }

        public Criteria andScopePriorityBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(IProductVersionScopeDAO.ScopePriority + " between",
                value1, value2, "scopePriority");

            return this;
        }

        public Criteria andScopePriorityNotBetween(int value1, int value2) {
            addCriterion(IProductVersionScopeDAO.ScopePriority +
                " not between", value1, value2, "scopePriority");

            return this;
        }

        public Criteria andScopePriorityNotBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(IProductVersionScopeDAO.ScopePriority +
                " not between", value1, value2, "scopePriority");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(IProductVersionScopeDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(IProductVersionScopeDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.Status + " is not null AND " +
                IProductVersionScopeDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.Status + " is null OR " +
                IProductVersionScopeDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " is null OR " +
                IProductVersionScopeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Status + " not in",
                    values, "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Status + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.Status + " not between",
                value1, value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(IProductVersionScopeDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(IProductVersionScopeDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.Remarks + " is not null AND " +
                IProductVersionScopeDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.Remarks +
                " is null OR " + IProductVersionScopeDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " = ", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " <>", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " is null OR " +
                IProductVersionScopeDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " >", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " >=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " <", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.Remarks + " <=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.Remarks + " not in",
                    values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(IProductVersionScopeDAO.Remarks + " not between",
                value1, value2, "remarks");

            return this;
        }

        public Criteria andProductVersionNameIsNull() {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " is null");

            return this;
        }

        public Criteria andProductVersionNameIsNotNull() {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " is not null");

            return this;
        }

        public Criteria andProductVersionNameIsNotEmpty() {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " is not null AND " +
                IProductVersionScopeDAO.ProductVersionName + " <> ''");

            return this;
        }

        public Criteria andProductVersionNameIsEmpty() {
            addCriterion("(" + IProductVersionScopeDAO.ProductVersionName +
                " is null OR " + IProductVersionScopeDAO.ProductVersionName +
                " = '')");

            return this;
        }

        public Criteria andProductVersionNameEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " = ",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameNotEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " <>",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " is null OR " + IProductVersionScopeDAO.ProductVersionName +
                " <>", value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameGreaterThan(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " >",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " >=",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameLessThan(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " <",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameLessThanOrEqualTo(String value) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " <=",
                value, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductVersionScopeDAO.ProductVersionName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andProductVersionNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " like",
                buffer.toString(), "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " not like", buffer.toString(), "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameIn(List<String> values) {
            if (values.size() == 1) {
                return andProductVersionNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionName +
                    " in", values, "productVersionName");

                return this;
            }
        }

        public Criteria andProductVersionNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andProductVersionNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionName +
                    " not in", values, "productVersionName");

                return this;
            }
        }

        public Criteria andProductVersionNameIn(String[] values) {
            if (values.length == 1) {
                return andProductVersionNameEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionName +
                    " in", Arrays.asList(values), "productVersionName");

                return this;
            }
        }

        public Criteria andProductVersionNameNotIn(String[] values) {
            if (values.length == 1) {
                return andProductVersionNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductVersionScopeDAO.ProductVersionName +
                    " not in", Arrays.asList(values), "productVersionName");

                return this;
            }
        }

        public Criteria andProductVersionNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andProductVersionNameBetween(String value1,
            String value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " between", value1, value2, "productVersionName");

            return this;
        }

        public Criteria andProductVersionNameNotBetween(String value1,
            String value2) {
            addCriterion(IProductVersionScopeDAO.ProductVersionName +
                " not between", value1, value2, "productVersionName");

            return this;
        }
    }
}
